<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>科鹏机电</title>
<head th:include="include :: header"></head>
<style>
    #bigimges {
        width: 50%;
        height: 50%;
        background-color: #cccc;
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -30%;
        margin-top: -100px;
        display: none;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">
                    <div class="columns pull-left">
                        <button type="button" class="btn  btn-primary" onclick="exportData()"><i class="fa fa-plus" aria-hidden="true"></i>导出
                        </button>
                    </div>
                    <div class="columns pull-right col-md-2 nopadding">
                        <input id="searchName" type="hidden" th:value="${itmid}" class="form-control"
                               placeholder="itmid">
                    </div>
                </div>
                <table id="qtyListtable" data-mobile-responsive="true" class="table table-hover table-striped">
                    <thead>
                        <th style="" tabindex="0">
                            <div class="th-inner ">收款时间</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">收款凭证</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">项目名称</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">状态</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">收款方</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">收款金额</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">本次收款比例</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">合同总额</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">资金到账日期</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">创建人</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="" tabindex="0">
                            <div class="th-inner ">创建时间</div>
                            <div class="fht-cell"></div>
                        </th>
                    </thead>
                    <tbody>
                    <tr th:each="receipt : ${receiptList}">
                        <td th:text="${#dates.format(receipt.receiptDate,'yyyy-MM-dd HH:mm:ss')}"/>
                        <td>
                            <img  style="width:100px;height: 80px;margin-top: -6px;cursor: pointer;"
                                  th:src="${receipt.receiptProof}" alt="无"/>
                        </td>
                        <td th:text="${receipt.projectName}"/>
                        <td>
                            <span class="label label-primary" th:if="${receipt.status} eq 1">新创建</span>
                            <span class="label label-primary" th:if="${receipt.status} eq 2">已收款</span>
                            <span class="label label-danger" th:if="${receipt.status} eq 3">作废</span>
                        </td>
                        <td th:text="${receipt.recriptCompanyname}"/>
                        <td th:text="${receipt.receiptAmount}"/>
                        <td th:text="${receipt.receiptScale}"/>
                        <td th:text="${receipt.projectAmount}"/>
                        <td th:text="${#dates.format(receipt.arrivalDate,'yyyy-MM-dd HH:mm:ss')}"/>
                        <td th:text="${receipt.userNameCreate}"/>
                        <td th:text="${#dates.format(receipt.gmtCreate,'yyyy-MM-dd HH:mm:ss')}"/>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

</div>

<div id="bigimges">
    <img src="">
</div>


<!--shiro控制bootstraptable行内按钮看见性 来自 科鹏机电 的创新方案 -->
<div>
    <script type="text/javascript">
        var s_edit_h = 'hidden';
        var s_remove_h = 'hidden';
        var s_resetPwd_h = 'hidden';
    </script>
</div>
<div shiro:hasPermission="fin:receipt:edit">
    <script type="text/javascript">
        s_edit_h = '';
    </script>
</div>
<div shiro:hasPermission="fin:receipt:remove">
    <script type="text/javascript">
        var s_remove_h = '';
    </script>
</div>
<div shiro:hasPermission="fin:receipt:resetPwd">
    <script type="text/javascript">
        var s_resetPwd_h = '';
    </script>
</div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/js/appjs/fin/receipt/receiptbyitm.js"></script>
</body>
</html>